<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of preview
 *
 * @author aquilax
 */
require 'FE_Controller.php';

class preview extends FE_Controller{
  function index(){
    $this->load->library('BBCode');
    $this->bbcode->SetSmileyURL(site_url('/img/smileys/'));
    $this->data['html'] = $this->bbcode->Parse($this->input->post('data'));
    $this->render('preview');
  }
}
?>
